<?php

namespace TableTennis\TeamBundle\Repository;

use Doctrine\ORM\EntityRepository;

class TeamRepository extends EntityRepository
{
    public function getTeams()
    {
        $q = $this->createQueryBuilder('t')
             ->orderBy('t.num_order', 'ASC')
             ->getQuery();

        return $q;
    }
}

?>
